<entry>
  <title><?php echo $post->getTitle() ?></title>
  <link rel="alternate" href="<?php echo url_for('post_show', $post, true) ?>" />
  <id><?php echo url_for('post_show', $post, true) ?></id>
  <updated><?php echo $post->getDateTimeObject('updated_at')->format(DATE_ATOM) ?></updated>
  <published><?php echo $post->getDateTimeObject('published_at')->format(DATE_ATOM) ?></published>
  <?php foreach ($post->getCategories() as $category) : ?>
  <category term="<?php echo $category ?>" scheme="<?php echo url_for('blog_by_category', array('category' => $category->getShortSlug()), true) ?>" label="<?php echo $category ?>"/>  
  <?php endforeach ?>
  <?php if ($post->getSourceExcerpt()) : ?>
  <summary type="html">
    <![CDATA[
      <?php echo sfOutputEscaper::unescape($post->getCachedExcerpt()) ?>
    ]]>
  </summary>
  <?php endif ?>
  <content type="html">
    <![CDATA[
      <?php echo sfOutputEscaper::unescape($post->getCachedContent()) ?>
    ]]>
  </content>
  <author>
    <name><?php echo $post->getAuthor()->getName() ?></name>
    <email><?php echo $post->getAuthor()->getEmailAddress() ?></email>
  </author>
</entry>